import Vue from 'vue'
import VueRouter from 'vue-router'
// import Article from '@/views/article'
// import Dashboard from '@/views/dashboard'
// import Layout from '@/views/article'
// import Article from '@/views/article'
Vue.use(VueRouter)

const router = new VueRouter({
    routes: [{
            path: '/',
            component: () =>
                import ('@/views/layout'),
            redirect: '/dashboard',
            children: [{
                    path: 'dashboard',
                    component: () =>
                        import ('@/views/dashboard')
                },
                {
                    path: 'article',
                    component: () =>
                        import ('@/views/article')
                }
            ]
        },
        {
            path: '/login',
            component: () =>
                import ('@/views/login')
        }
    ]
})

export default router